package com.kitty.spring.annotationdriven;

import com.kitty.spring.annotationdriven.beans.Person;
import com.kitty.spring.annotationdriven.configuration.BeanConfigofPropertyValues;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class MainTest2 {

    AnnotationConfigApplicationContext context;

    @Before
    public void before(){
        this.context = new AnnotationConfigApplicationContext(BeanConfigofPropertyValues.class);
    }

    @Test
    public  void propertyTest(){
        Person person = context.getBean(Person.class);
        System.out.println("person = " + person.toString());
    }




}
